Function Reference
_AD_ListRootDSEAttributes
Returns a one-based array of the RootDSE Atributes.
Parameters
Return Value
Success: Returns an one-based one dimensional array of the following RootDSE attributes. Multi-valued attributes are as multiple lines.
1 - configurationNamingContext: Specifies the distinguished name for the configuration container.
2 - currentTime: Specifies the current time set on this directory server in Coordinated Universal Time format.
3 - defaultNamingContext: Specifies the distinguished name of the domain that this directory server is a member.
4 - dnsHostName: Specifies the DNS address for this directory server.
5 - domainControllerFunctionality: Specifies the functional level of this domain controller. Values can be:
0: Windows 2000 Mode
2: Windows Server 2003 Mode
3: Windows Server 2008 Mode
4: Windows Server 2008 R2 Mode
6 - domainFunctionality: Specifies the functional level of the domain. Values can be:
0: Windows 2000 Domain Mode
1: Windows Server 2003 Interim Domain Mode
2: Windows Server 2003 Domain Mode
3: Windows Server 2008 Domain Mode
4: Windows Server 2008 R2 Domain Mode
7 - dsServiceName: Specifies the distinguished name of the NTDS settings object for this directory server.
8 - forestFunctionality: Specifies the functional level of the forest. Values can be:
0: Windows 2000 Forest Mode
1: Windows Server 2003 Interim Forest Mode
2: Windows Server 2003 Forest Mode
3: Windows Server 2008 Forest Mode
4: Windows Server 2008 R2 Forest Mode
9 - highestCommittedUSN: Specifies the highest update sequence number (USN) on this directory server. Used by directory replication.
10 - isGlobalCatalogReady: Specifies Global Catalog operational status. Values can be either "True" or "False".
11 - isSynchronized: Specifies directory server synchronisation status. Values can be either "True" or "False".
12 - LDAPServiceName: Specifies the Service Principal Name (SPN) for the LDAP server. Used for mutual authentication.
13 - namingContexts: A multi-valued attribute that specifies the distinguished names for all naming contexts stored on this directory server. By default, a Windows 2000 domain controller has at least three naming contexts: Schema, Configuration, and the domain which the server is a member of.
14 - rootDomainNamingContext: Specifies the distinguished name for the first domain in the forest that this directory server is a member of.
15 - schemaNamingContext: Specifies the distinguished name for the schema container.
16 - serverName: Specifies the distinguished name of the server object for this directory server in the configuration container.
17 - subschemaSubentry: Specifies the distinguished name for the subSchema object. The subSchema object specifies properties that expose the supported attributes (in the attributeTypes property) and classes (in the objectClasses property).
18 - supportedCapabilities: multi-valued attribute that specifies the capabilities supported by this directory server.
19 - supportedControl: A multi-valued attribute that specifies the extension control OIDs supported by this directory server.
20 - supportedLDAPPolicies: A multi-valued attribute that specifies the names of the supported LDAP management policies.
21 - supportedLDAPVersion: A multi-valued attribute that specifies the LDAP versions (specified by major version number) supported by this directory server.
22 - supportedSASLMechanisms: Specifies the security mechanisms supported for SASL negotiation (see LDAP RFCs). By default, GSSAPI is supported.
Remarks
In LDAP 3.0, rootDSE is defined as the root of the directory data tree on a directory server.
The rootDSE is not part of any namespace. The purpose of the rootDSE is to provide data about the directory server.
Related
See Also
http://msdn.microsoft.com/en-us/library/cc223254(v=PROT.13).aspx
Example
#AutoIt3Wrapper_AU3Check_Parameters= -d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6
#AutoIt3Wrapper_AU3Check_Stop_OnWarning=Y
; *****************************************************************************
; Example 1
; Get a list of all RootDSE attributes
;
; domainControllerFunctionality: Specifies the functional level of this domain controller. Values can be:
; 0 - Windows 2000 Mode
; 2 - Windows Server 2003 Mode
; 3 - Windows Server 2008 Mode
; 4 - Windows Server 2008 R2 Mode
; domainFunctionality: Specifies the functional level of the domain. Values can be:
; 0 - Windows 2000 Domain Mode
; 1 - Windows Server 2003 Interim Domain Mode
; 2 - Windows Server 2003 Domain Mode
; 3 - Windows Server 2008 Domain Mode
; 4 - Windows Server 2008 R2 Domain Mode
; forestFunctionality: Specifies the functional level of the forest. Values can be:
; 0 - Windows 2000 Forest Mode
; 1 - Windows Server 2003 Interim Forest Mode
; 2 - Windows Server 2003 Forest Mode
; 3 - Windows Server 2008 Forest Mode
; 4 - Windows Server 2008 R2 Forest Mode
; *****************************************************************************
#include <AD.au3>
; Open Connection to the Active Directory
_AD_Open()
If @error Then Exit MsgBox(16, "Active Directory Example Skript", "Function _AD_Open encountered a problem. @error = " & @error & ", @extended = " & @extended)
; Get a list of all RootDSE attributes
Global $aTemp = _AD_ListRootDSEAttributes()
_ArrayDisplay($aTemp, "Active Directory Functions - Example 1")
; Close Connection to the Active Directory
_AD_Close()